package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import play.db.jpa.Model;

@Entity
@Table(name = "forumsubject")
public class forumSubject extends Model {

    public String name;
    public String resume;
    public String contenu;
    public Date date;
    public Date updated;
    @ManyToOne
    public User user;
    @ManyToOne
    public forumCategory forumCategory;

    public forumSubject(
            String name,
            String resume,
            String contenu,
            Date date,
            Date updated,
            User user,
            forumCategory forumCategory) {
        this.name = name;
        this.resume = resume;
        this.contenu = contenu;
        this.date = date;
        this.updated = updated;
        this.user = user;
        this.forumCategory = forumCategory;
    }
}
